package main

import (
	"fmt"
	"strings"
)

func main1() {
	fileLocation := "/home/fip/server/info/bin/file/cmeMarketData/202111/CME终端数据-202111.csv"
	uploadDir := "/home/fip/server/info/bin/file"
	httpFileUrl := "http://170.0.20.148/file/"

	result := strings.Replace(fileLocation, uploadDir+"/", httpFileUrl, -1)
	fmt.Println(result)
}
